<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
    <style>
        /* 通用 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        .swaper {
            width: 560px;
            height: 305px;
            margin: 0 auto;
            background-color: lightblue;
            position: relative;

            overflow: hidden;
        }

        /* 按钮 */
        .swaper .controls {
            position: relative;
            z-index: 300;
        }

        .swaper .left,
        .swaper .right {
            position: absolute;
            background-color: lightcoral;

            width: 50px;
            height: 50px;

            top: 127px;

            text-align: center;
            line-height: 50px;
            border-radius: 50%;

        }

        .swaper .left {
            left: 15px;
        }

        .swaper .right {
            right: 15px;
        }

        .swaper .left:hover,
        .swaper .right:hover {
            color: white;
            background-color: rebeccapurple;
        }

        /* 图片 */
        .swaper .items {
            width: 1680px;
            height: 100%;
            font-size: 0;

            position: relative;
            left: -560px;

            z-index: 100;

        }

        .items img {
            width: 560px;
            height: 305px;
        }


        /* 点 */
        .swaper .dots {
            position: absolute;
            z-index: 300;

            right: 5px;
            bottom: 13px;
            width: 100px;
            height: 12px;
        }

        .swaper .dot {
            float: left;
            width: 10px;
            height: 10px;
            background-color: gray;
            border-radius: 50%;
            margin-left: 5px;
        }
        .dots .active{
            background-color: black;
        }
    </style>
</head>

<body>
    <div class="swaper">
        <div class="controls">
            <div class="left">前</div>
            <div class="right">后</div>
        </div>


        <div class="items">
            <img src="/素材/img/横图1.png" alt="">
            <img src="/素材/img/横图2.png" alt="">
            <img src="/素材/img/横图3.png" alt="">
        </div>


        <div class="dots">
            <div class="dot active"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>

    </div>

</body>

</html>